package best.driver.android.common.network;

import android.text.TextUtils;
import org.json.JSONObject;

public class ApiStringRequest extends ApiRequest<String> {

    public ApiStringRequest(Method method) {
        super(method);
    }

    @Override
    protected String processJsonResponse(Object response) {
        if(response == null || TextUtils.isEmpty(response.toString())) {
            return null;
        }
        return (String) response;
    }
}